package kr.co.doriclassic.pro06_03;

import java.util.Scanner;

public class HeightWeight {
	public static void main(String[] args) {
		double inpHeight, inpWeight;
		Scanner sc = new Scanner(System.in);	
		
		System.out.print("키를 입력하세요:");
		inpHeight=sc.nextDouble();
		System.out.print("몸무게를 입력하세요:");
		inpWeight=sc.nextDouble();
		accWeight(inpHeight, inpWeight);
		}

	private static void accWeight(double inpHeight, double inpWeight) {
		// TODO Auto-generated method stub
		double standardWeight = (inpHeight - 100)*0.9;
		
		if(inpWeight>standardWeight){
			System.out.println("표준체중:"+standardWeight+"/당신체중:"+inpWeight);
			System.out.println("당신은 과체중입니다");
		}
		else if(inpWeight==standardWeight){
			System.out.println("표준체중:"+standardWeight+"/당신체중:"+inpWeight);
			System.out.println("당신은 표준입니다.");
		}
		else{
			System.out.println("표준체중:"+standardWeight+"/당신체중:"+inpWeight);
			System.out.println("당신은 저체중입니다.");
		}
	}
	
	
}